package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.quwan.app.vo.MemberSpreadList;
import com.quwan.entity.TMemberBalanceLog;
import com.quwan.entity.TSpreadProfitList;
import com.quwan.entity.TSystemPushMsg;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author quan
 * @date 2021-08-02 18:48
 */


public interface TMemberBalanceLogMapper extends BaseMapper<TMemberBalanceLog> {
    Page<Map<String, Object>> selectBalanceLog(@Param("page") Page<Map<String, Object>> page,
                                               @Param("nickName") String nickName,
                                               @Param("id") String id,
                                               @Param("mobile") String mobile,
                                               @Param("method") String method,
                                               @Param("status") String status,
                                               @Param("addBeginTime") String addBeginTime,
                                               @Param("addEndTIme") String addEndTIme,
                                               @Param("name") String name,
                                               @Param("tradeType") String tradeType,
                                               @Param("mId") String mId);

    BigDecimal selectSumMoney(@Param("id") String id, @Param("tradeType") Integer tradeType);

    List<TSpreadProfitList> selectProfitList();

    Page<MemberSpreadList> selectSpreadList(Page<Object> objectPage, @Param("id") String collect);
}